import appConfig from '@/config/app.js';
import {getRequest, postRequest} from '@/server/request.js';

/**
 * 用户注册
 * @param formData
 * @returns {Promise<axios.AxiosResponse<*>>|*}
 */
export function searchService(formData) {
    return getRequest(appConfig.apiHost + '/v1/friend/search', formData);
}

/**
 * 获取好友列表
 * @param formData
 * @returns {Promise<axios.AxiosResponse<*>>|*}
 */
export function getFriendListService(formData) {
    return getRequest(appConfig.apiHost + '/v1/friend', formData);
}